package com.kld.simplelauncher;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;

import androidx.annotation.Nullable;

import com.kld.simplelauncher.utils.AppUtils;

public class MainActivity extends Activity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.mian_layout);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
    }

    @Override
    protected void onResume() {
        super.onResume();
//        getWindow().getDecorView().setSystemUiVisibility(
//                View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
//        );
    }

    @Override
    public void onBackPressed() {

    }

    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.main_btn_radio:
                AppUtils.doRunActivity(MainActivity.this, "com.octopus.android.carapps", "com.octopus.android.carapps.radio.RadioActivity");
                break;
            case R.id.main_btn_bt_music:
                AppUtils.doRunActivity(MainActivity.this, "com.octopus.android.carapps", "com.octopus.android.carapps.btmusic.BTMusicActivity");
                break;
            case R.id.main_btn_dab:
                AppUtils.doRunActivity(MainActivity.this, "com.ex.dabplayer.pad", "com.ex.dabplayer.pad.activity.MainActivity");
                break;
            case R.id.main_btn_phone_link:
                AppUtils.doRunActivity(MainActivity.this, "com.carletter.car", "com.carletter.car.ui.CarletterActivity");
                break;
            case R.id.main_btn_eq:
                AppUtils.doRunActivity(MainActivity.this, "com.eqset", "com.eqset.EQActivity");
                break;
        }
    }
}
